home *** CD-ROM | disk | FTP | other *** search
/ Aminet 48 / Aminet 48 (2002)(GTI - Schatztruhe)[!][Apr 2002].iso / Aminet / text / edit / vim60rt.lha / Vim / vim60 / ftplugin / ruby.vim < prev    next >
Encoding:
Text File  |  2001-03-24  |  577 b   |  22 lines

  1. " Vim filetype plugin
  2. " Language:     Ruby
  3. " Maintainer:   Matt Armstrong <matt@lickey.com>
  4. " Last Change:  2001/03/24
  5. " URL: http://www.lickey.com/env/vim/ftplugin/ruby/ruby.vim
  6.  
  7. " Only do this when not done yet for this buffer
  8. if (exists("b:did_ftplugin"))
  9.     finish
  10. endif
  11. let b:did_ftplugin = 1
  12.  
  13. " Set 'formatoptions' to break comment lines but not other lines, and insert
  14. " the comment leader when hitting <CR> or using "o".
  15. setlocal fo-=t fo+=croql
  16.  
  17. " Format comments to be up to 78 characters long
  18. setlocal tw=78
  19.  
  20. " Set shift width to 2, the Ruby standard
  21. setlocal sw=2
  22.